package com.dream.keigezhushou.Activity;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;


class MyFragmentPagerAdapter extends FragmentPagerAdapter {

    private ArrayList<Fragment> fragmentList;

    public MyFragmentPagerAdapter(FragmentManager fm, ArrayList<Fragment> list) {
        super(fm);
        this.fragmentList = list;

    }


    @Override
    public int getCount() {

        return fragmentList.size();
    }

    @Override
    public Fragment getItem(int arg0) {
        return  fragmentList.get(arg0);
    }





}
















